home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15609 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.3 KB  |  35 lines

  1. Newsgroups: comp.lang.c
  2. Path: gail.ripco.com!mambuhl
  3. From: mambuhl@ripco.com (Martin Ambuhl)
  4. Subject: Re: malloc.h             
  5. Message-ID: <Dq5JFu.Czv@rci.ripco.com>
  6. X-Nntp-Sender: mambuhl@cook.ripco.com
  7. Sender: usenet@rci.ripco.com (Net News Admin)
  8. Organization: Ripco Internet BBS Chicago
  9. Date: Sat, 20 Apr 1996 08:26:18 GMT
  10.  
  11. hartigan@sonic.net (dennis hartigan)
  12. in <hartigan-1704961430130001@news.sonic.net> asks:
  13.  
  14. >i have some source that i found and it includes a header file named
  15. ><malloc.h>...i have 4 books on C, and not one of them mention this
  16. >header...can someone tell me what is in this prototype???
  17.  
  18. No one can tell you definitively what is in this header file, since it
  19. is non-standard.  Any implementation that supplies such a header is
  20. showing its non-ANSI/ISO history, since malloc() is prototyped in
  21. stdlib.h.
  22.  
  23. In some DOS implementations, various non-standard aliases for
  24. the standard malloc(), free(), realloc(), calloc() are provided as
  25. well as for the non-standard coreleft() (and the non-standard "far" and
  26. "huge" versions of these).
  27.  
  28. Just forget malloc.h.  Use stdlib.h and the right names for the standard
  29. functions.
  30.  
  31.                                                                                
  32. --
  33. * Martin Ambuhl       net: mambuhl@ripco.com
  34. * Chicago, IL (USA)    
  35.